<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Modificar Servicio</title>
<script src="../recursos/jquery/jquery.js" type="text/javascript"></script> 
<script src="../recursos/jquery/rut/jquery.Rut.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/TallerMecanico/common/css/estilo.css" />
<script type="text/javascript">

		
		function validar() {
			document.getElementById("formulario").action = "modificarServicios.do";
			document.getElementById("formulario").submit();
		}
		$(document).ready(function(){
		
		$("#formulario").validate({
			rules : {
				nombre_consultar : {required : true,minlength : 3},
			},
			messages : {
				nombre_consultar : "Debe Intruducir un nombre del servicio",
			},
			submitHandler : function(form) {
				document.getElementById("formulario").action = "modificarServicios.do";
				document.getElementById("formulario").submit();
			}
		});
		
		});
</script>


</head>
<body>
	<h1>Modificar Servicio</h1>
	<form name="formulario" id="formulario" method="post">
		<input type="hidden" id="metodo" name="metodo" value="consultarServicioModificar">
		<input type="text" id="nombre_consultar" name="nombre_consultar" />
		<input type="button" value="Consultar" onclick="validar()"/>
	</form>
</body>
</html>